#ifndef __PARAMS_SETTING_H__
#define __PARAMS_SETTING_H__


#include <vector>
#include <string>

struct ExposureSetting {
    int index;
    double value;
    std::string name;
};

struct IntValueSetting {
    int index;
    int value;
};

std::string getExpNameByIndex(const std::vector<ExposureSetting>& settings, int index);
double getExpByIndex(const std::vector<ExposureSetting>& settings, int index);
int findClosestExpIndex(const std::vector<ExposureSetting>& settings, double exp_value);
double nameToDouble(const std::string& str);
int getIntValueByIndex(const std::vector<IntValueSetting>& settings, int index);
int findIntValueIndex(const std::vector<IntValueSetting>& settings, int value);
int findClosestIntValueIndex(const std::vector<IntValueSetting>& settings, int value);
int setBurstPhotoCount(int value);
int getBurstPhotoCount();
int setTimelapseIntervalIndex(int index);
int getTimelapseIntervalIndex();
int getTimelapseInterval();
int setTimelapseTotalTimeIndex(int index);
int getTimelapseTotalTimeIndex();
int getTimelapseTotalTime();
int setPanoramaRow(int value);
int getPanoramaRow();
int setPanoramaCol(int value);
int getPanoramaCol();
int setBurstIntervalIndex(int index);
int getBurstIntervalIndex();
int getBurstInterval();
int setBurstCountIndex(int index);
int getBurstCountIndex();
int getBurstCountNew();

#endif